<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0049)http://www.zdiao.com/vtest_show.asp?testid=362100 -->
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=GBK">

			<title><s:property value="questionnaire.title" />
			</title>
			<meta name="Keywords" content="">
				<meta name="Description" content="">

					<link href="./surveyimg/css.css" rel="stylesheet" type="text/css">
						<script async="" type="text/javascript"
							src="./surveyimg/ca-pub-3492615220135587.js"></script>
						<script type="text/javascript" language="javascript1.2"
							src="./surveyimg/js.js"></script>
						<script type="text/javascript" src="./js/jquery-1.8.3.min.js"></script>
						<script language="JavaScript1.1" src="./surveyimg/saved_resource"></script>
	</head>

	<body>

		<table width="1000" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tbody>
				<tr>
					<td width="771" rowspan="2" align="left" valign="top">


						<table width="760" height="1050" border="1" cellpadding="0"
							cellspacing="0" class="datalist">
							<tbody>
								<tr>
									<td height="847" valign="top">
										<table width="760" border="0" cellpadding="0" cellspacing="0">
											<tbody>
												<tr>
													<td valign="top">
														<table width="760" border="0" align="center"
															cellpadding="0" cellspacing="0">
															<tbody>
																<tr>
																	<td height="41" align="right" class="STYLE4">
																		&nbsp;
																	</td>
																</tr>
																<tr>
																	<td height="35" align="center" class="STYLE3-2">
																		<s:property value="questionnaire.title" />
																		&nbsp;
																	</td>
																</tr>
																<tr>
																	<td height="30" align="center" valign="top"
																		class="STYLE4" style="padding-left: 5px">
																		发布人：20140829 &nbsp;&nbsp; 人次：262 &nbsp;&nbsp; 金币：8
																		&nbsp;&nbsp; 状态：进行中 &nbsp;&nbsp; 类别：各行各业 &nbsp;&nbsp;
																		发布日期：2014-9-2 13:53:27
																	</td>
																</tr>


															</tbody>
														</table>
														<form name="questionForm" action="" method="post">
															<s:iterator value="questionnaire.questionList"
																var="question">
																<table width="750" border="0" align="center"
																	cellpadding="0" cellspacing="0">
																	<tbody>
																		<tr align="center">
																			<td height="1" class="xian">
																				-------------------------------------------------------------------------------------------------------------------------------------------
																			</td>
																		</tr>
																		<tr align="left">
																			<td height="25" class="STYLE3"
																				style="padding-left: 10px; padding-right: 10px">
																				<s:property value="#question.numStr" />
																				&nbsp;
																				<s:property value="#question.title" />
																			</td>
																		</tr>
																		<s:iterator value="#question.answerList" var="answer">
																			<tr valign="top">
																				<td height="22" align="left"
																					style="padding-left: 15px; padding-right: 15px; padding-bottom: 5px; line-height: 20px"
																					class="STYLE4">
																					<input type="radio" name="1084295" value="value1">
																						<s:property value="#answer.content" />
																				</td>
																			</tr>
																		</s:iterator>
																	</tbody>
																</table>
															</s:iterator>
														</form>
														<form name="createQuestionForm" action="" method="post">

															<table width="740" border="0" align="center"
																cellpadding="0" cellspacing="0">
																<script language="javascript">
	function createQuestion(){
		 $.ajax({
             type: "POST",
             url: "createQuestionAjax.htm",
             data: {content:$("#message").val()},
             dataType: "json",
             success: function(data){
                        alert(data.status);
                      }
         });
	}
</script>


																<tbody>
																	<tr>
																		<td width="400" align="center">
																			<textarea id="message" name="message" cols="54" rows="7"></textarea>
																		</td>
																		<td width="9" class="STYLE4">
																			<input type="button" value="单选题" />
																			<input type="button" value="多选题" />
																			<input type="button" value="填空题" />
																			<input type="button" value="打分题" />
																		</td>
																		<td width="331" class="STYLE4"></td>
																	</tr>
																	<tr>
																		<td width="400" height="39">
																			<input type="button" onclick="createQuestion()" value="提交" />
																		</td>
																		<td height="39" colspan="2" valign="bottom">
																			&nbsp;
																		</td>


																	</tr>
																</tbody>
															</table>
													</td>
												</tr>
												<tr>
													<td align="center" valign="top"></td>
												</tr>
											</tbody>
										</table>
										<table width="1000" border="0" align="center" cellpadding="0"
											cellspacing="0">
											<tbody>
												<tr>
													<td height="5"></td>
												</tr>
											</tbody>
										</table>
										<table width="100%" height="22" border="0" align="center"
											cellpadding="0" cellspacing="0">
											<tbody>
												<tr>
													<td height="22" align="center" bgcolor="#E4E4E4"
														class="STYLE4"></td>
												</tr>
											</tbody>
										</table>
	</body>
</html>